#-------------------------------------------------
#
# Project created by QtCreator 2021-08-21T16:56:34
#
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = test
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

CONFIG += c++11

SOURCES += \
        main.cpp \
        widget.cpp

HEADERS += \
        widget.h

FORMS += \
        widget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

DISTFILES += \
    demo.vsh \
    demo.fsh \
    democompute.fsh \
    convert.fsh \
    common.vsh \
    fftcompute.fsh \
    convolve2d.fsh

RESOURCES += \
    res.qrc

ProjectName=OpenGL_GP
LibsBuildDir = libs-build

CONFIG(debug, debug|release){

    win32{
    LIBS += $${PWD}/../libs-build/debug/OpenGL_GP_Lib.lib
    }
    DESTDIR = $${PWD}/../../Build-$${ProjectName}/debug
    copy_libs_dest.path = $${PWD}/../../Build-$${ProjectName}/debug
    copy_libs_dest.files = '$${PWD}/../libs-build/debug/OpenGL_GP_Lib.dll'

    copy_misc_dest.path = $${PWD}/../../Build-$${ProjectName}/debug
    copy_misc_dest.files = '$${PWD}/../1024x300x16bit_ui.data' \
                            '$${PWD}/../2048x1000x16bit_ui.data'

    final_intall.path = $${PWD}/../../Build-$${ProjectName}/Install/debug

}else{

    win32{
    LIBS += $${PWD}/../libs-build/release/OpenGL_GP_Lib.lib
    }
    DESTDIR = $${PWD}/../../Build-$${ProjectName}/release
    copy_libs_dest.path = $${PWD}/../../Build-$${ProjectName}/release
    copy_libs_dest.files = '$${PWD}/../libs-build/release/OpenGL_GP_Lib.dll'

    copy_misc_dest.path = $${PWD}/../../Build-$${ProjectName}/release
    copy_misc_dest.files = '$${PWD}/../1024x300x16bit_ui.data' \
                            '$${PWD}/../2048x1000x16bit_ui.data'

    final_intall.path = $${PWD}/../../Build-$${ProjectName}/Install/release
}

OBJECTS_DIR = $${DESTDIR}/tmp/$${TARGET}
MOC_DIR = $${DESTDIR}/moc/$${TARGET}
RCC_DIR = $${DESTDIR}/rcc/$${TARGET}
UI_DIR = $${DESTDIR}/ui/$${TARGET}

#message($$DESTDIR)
#message($$OBJECTS_DIR)
#message($$MOC_DIR)
#message($$RCC_DIR)
#message($$UI_DIR)
#message($$OUT_PWD)


win32{
LIBS += $${PWD}/../libs-build/debug/OpenGL_GP_Lib.lib

#final_intall.files =
#message($$final_intall.path)
#message($$final_intall.files)
INSTALLS += final_intall \
            copy_misc_dest \
#            copy_libs_dest \
#
}

unix{

}
